home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Programming / SWI / source / src / README.RT < prev    next >
Encoding:
Text File  |  1996-11-11  |  3.6 KB  |  97 lines

  1.             SWI-Prolog runtime README
  2.             =========================
  3.  
  4. 1. Components of the SWI-Prolog runtime environment
  5. ===================================================
  6.  
  7.     bin/$ARCH/pl     The emulator itself.
  8.     bin/$(ARCH)/chpl `Change Prolog': change the emulator path
  9.     bin/swipl     File containing the place of the home directory (..)
  10.     man/pl.1     Manual page for SWI-Prolog
  11.     man/chpl.1     Manual page for chpl.1
  12.     swipl         File containing the place of the home directory (.)
  13.     lib/<arch>     Place for your shared libraries.
  14.  
  15.  
  16. 2. Installation of the runtime environment
  17. ==========================================
  18.  
  19. Place this directory anywhere you like.
  20.  
  21.  
  22. 3. Installing an application to use the runtime environment
  23. ===========================================================
  24.  
  25. A SWI-Prolog runtime application is a /bin/sh shell script that executes
  26. the emulator.  Therefore, it needs to know the location of the emulator.
  27. It starts the emulator using the following command:
  28.  
  29.     exec ${SWIPL-/staff/jan/src/pl/src/pl} -x $0 "$@"
  30.  
  31. Therefore, there are two ways to tell   the  application how to find the
  32. emulator:
  33.  
  34.     (1) Change the wired-in path using the program `chpl' from
  35.     the runtime distribution:
  36.  
  37.         % chpl -e /absolute-path-to-emulator my-application
  38.  
  39.     Or simply edit the file.  In this case, be warned that the
  40.     scripts ends with the line `# End Header'.  This line and
  41.     anything below should *not* be modified.  The file after
  42.     this line is BINARY and contains LONG LINES.  Many editors
  43.     don't like this!
  44.  
  45.     You can also edit the runtime header script using chpl:
  46.     
  47.         % chpl -x my-application > header
  48.         % emacs header
  49.         % chpl -h header my-application
  50.  
  51.     this avoids problems with editors that are incapable of
  52.     editing binary files.
  53.  
  54.     (2) Set the environment variable SWIPL to point to the
  55.     emulator.
  56.  
  57.  
  58. 4. The development environment
  59. ==============================
  60.  
  61. SWI-Prolog is a free  Prolog  system   for  non-commercial  usage.   Its
  62. licence allows you to use the system for  anything you like, but you are
  63. *not* allowed to ask money  for   applications  running under SWI-Prolog
  64. that exceeds reasonable administrative and copying costs.  The system is
  65. distributed `as-is' without any implicit or   explicit warranty.  If you
  66. want to distribute commercial applications  based on SWI-Prolog, contact
  67. prolog-request@swi.psy.uva.nl
  68.  
  69. The sources and documentation are available from
  70.  
  71.     ftp://swi.psy.uva.nl/pub/SWI-Prolog/
  72.  
  73. 4. Warranty
  74. ===========
  75.  
  76. WE PROVIDE ABSOLUTELY NO WARRANTY, TO THE EXTENT PERMITTED BY APPLICABLE
  77. LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING, THE UNIVERSITY OF
  78. AMSTERDAM AND/OR OTHER PARTIES PROVIDE THE XPCE RUNTIME SYSTEM "AS IS"
  79. WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
  80. BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  81. FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
  82. PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE XPCE PROGRAM PROVE
  83. DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
  84. CORRECTION.
  85.  
  86. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL THE UNIVERSITY OF
  87. AMSTERDAM, AND/OR ANY OTHER PARTY WHO MAY MODIFY AND REDISTRIBUTE XPCE
  88. AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY LOST
  89. PROFITS, LOST MONIES, OR OTHER SPECIAL, INCIDENTAL OR CONSEQUENTIAL
  90. DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE (INCLUDING BUT NOT
  91. LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
  92. SUSTAINED BY THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH
  93. PROGRAMS NOT DISTRIBUTED BY THE UNIVERSITY BY OF AMSTERDAM) THE PROGRAM,
  94. EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES, OR FOR
  95. ANY CLAIM BY ANY OTHER PARTY.
  96.  
  97.